import 'dart:convert';

import 'package:grocery_app_demo/generated/json/base/json_field.dart';
import 'package:grocery_app_demo/generated/json/shipper_list_res_entity.g.dart';

@JsonSerializable()
class ShipperListResEntity {
  late int id;
  late String shipperName;

  ShipperListResEntity();

  factory ShipperListResEntity.fromJson(Map<String, dynamic> json) =>
      $ShipperListResEntityFromJson(json);

  Map<String, dynamic> toJson() => $ShipperListResEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
